

var request = require("request");
var qs = require('querystring');

var param = {
  sortBy: 'rank',
  pageNumber: 1,
  pageSize: 10,
  author: 'all'
}
var url = `https://www.makeapie.com/chart/list?${qs.stringify(param)}`;
request(url, function (error, response, body) {
  if (!error && response.statusCode == 200) {
    var data = JSON.parse(response.body).data;
    console.log(data);
  } else {
    console.log('获取数据失败');
  }
});